using System.Collections;
using System.Windows.Forms;

namespace ShadeTree.Binding.Lists
{
    public interface IPicklist : IEnumerable
    {
        IList Values { get; }

        string DisplayMember { get; set; }
        void Fill(ComboBox ComboBox);
        void SelectForDisplay(ComboBox comboBox, string display);
        string GetDisplay(ComboBox comboBox);

        object GetValue(object selectedItem);
        void SetValue(ComboBox comboBox, object originalValue);

        string GetDisplay(object item);
        void Fill(System.Windows.Controls.ComboBox control);
        void SelectForDisplay(System.Windows.Controls.ComboBox comboBox, string display);
        void SetValue(System.Windows.Controls.ComboBox comboBox, object originalValue);
    }
}